            <div id="dashboard-body">
            <?php foreach ($goods as $good) { ?>
              <div class="deal">
                <div class="col1" style="width:200px !important">
                  <a href="<?php echo $good['goods_url']; ?>" target="_blank"><img style="width:190px" src="<?php echo $good['img_url']; ?>" alt="<?php echo htmlspecialchars($good['title']); ?>" class="image" /></a>
                </div><!-- end .col1 -->
                <div class="col2" style="width:240px !important">
                  <h2><a href="<?php echo $good['goods_url']; ?>" target="_blank"><?php 
                  $item_title = $good['title'];
                  if(mb_strlen($item_title) >= 50){
                  	$item_title = mb_substr($item_title, 0,50).'...';
                  }
                  echo htmlspecialchars($item_title);
                  ?></a></h2>
                  <span class="location_wrap">
                  	<?php
                  		$m_addr = $good['merchant_addr'];
                  		if($m_addr){
                  	?>
                    <p class="address">
                      地址：<?php 
                      	if(mb_strlen($m_addr) >= 50){
		                  	$m_addr = mb_substr($m_addr, 0,50).'...';
		                }
                      	echo htmlspecialchars($m_addr);
                       ?>
                    </p>
                    <?php } ?>
                  </span>
                  
                  <span>
                    <p class="gray">
                      上线日期：<?php
                      	if(strtotime($good['start_time'])) {
                      		$today_time = (int)(time()/86400) * 86400;
                      		$online_time = (int) (strtotime($good['start_time'])/86400) * 86400;
                      		$days = (int)($today_time - $online_time)/86400;
                      		$date_str = '今天';
                      		if($days == 1){
                      			$date_str = '昨天';
                      		}elseif ($days == 2){
                      			$date_str = '2天前';
                      		}elseif ($days >= 3){
                      			$date_str = '3天前';
                      		}
                      		echo $date_str; 
                      	}
                      	?>
                      |
                      来源：<a href="<?php echo $good['site_url']; ?>" target="_blank"><?php echo htmlspecialchars($site_info[$good['site_id']]); ?></a>
                    </p>
                  </span>

                  <!-- <?php echo "sid:".$good['site_id'].' gid:'.$good['id'].' c1id:'.$good['cat_level1'].' c2id:'.$good['cat_level2']; ?> -->
                  <div class="tags" style="clear:both">
                      <p><span class="tag_wrap"><a class="deal_tag on"><?php echo $cat_info[$good['cat_level2']]['cat_name']; ?></a></span> </p>
                  </div>
                  <!-- JiaThis Button BEGIN
                  <div id="ckepop" class="dealshare">
                    <span>分享到：</span>
                    <a class="jiathis_button_tsina"></a>
                    <a class="jiathis_button_kaixin001"></a>
                    <a class="jiathis_button_renren"></a>
                  </div>
                  JiaThis Button END -->
                  <div style="clear: both;"></div>
                </div><!-- end .col2 -->
                <div class="col3" style="width:190px !important">
                  <div class="container first">
                    <ul>
                      <li class="discount" style="padding-left:10px"><span style="color:orange;font-size:17px;font-weight:bold">￥<?php echo $good['sale_price']; ?></span><a href="<?php echo $good['goods_url']; ?>" target="_blank" class="formbutton">去看看</a><div class="clear"></div></li>
                    </ul>
                  </div>
                  <div class="container">
                    <ul class="info">
                      <li style="width:80px"><span>原价</span><br>￥<?php echo $good['original_price']; ?></li>
                      <li style="width:80px"><span>折扣</span><br><kbd style="color:orange;font-size:16px"><?php echo number_format($good['sale_rate'],1) ; ?>折</kbd></li>
                      <!--<li class="last"><span>节省</span><br>￥<?php echo $good['original_price'] - $good['sale_price'] ; ?></li>-->
                    </ul>
                  </div><!-- end .container-->
                  <div class="container">
                    <ul>
                      <li style="font-size:14px" class="time countdown hasCountdown ttzcountdown" endtime="<?php echo strtotime($good['close_time']).'000'; ?>"></li>
                    </ul>
                  </div><!-- end .container-->
                  <div class="container" style="border-bottom:none">
                    <ul>
                      <li style="font-size:14px"><?php echo $good['sales_num']?$good['sales_num']:0 ; ?>人购买</li>
                    </ul>
                  </div><!-- end .container-->
                </div><!-- end .col3 -->
                <div class="clear"></div>
              </div><!-- end .deal -->
            <?php } ?> 
            </div><!-- end #dashboard -->